// 引入css重置样式
@import "reset.css";
// 引入iconfont
@import "../font/iconfont.css";
// 界面主色调
@color:#0cc444;
body,html,#page{
    height: 100%;
}
#page{
    max-width: 6.4rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
/*头部部分*/
header{
    height: .88rem;
    background: @color;
    display: flex;
    justify-content: center;
    align-items: center;
    span{
        width: 1.2rem;
        height: .48rem;
        font-size: .24rem;
        background: #40d067;
        color: #a3e9b7;
        text-align: center;
        line-height: .48rem;
        &.cur{
            background: #64d985;
            color: #ffffff;
        }
        &:nth-child(1){
            border-radius: .3rem 0 0 .3rem;
        }
        &:nth-child(2){
            border-radius: 0 .3rem .3rem 0;
        }
    }
}

/*导航部分*/
nav{
    display: flex;
    height: .7rem;
    // border-bottom: 1px solid #d9d9d9;
    a{
        flex: 1;
        color: #666;
        font-size: .28rem;
        text-align: center;
        line-height: 0.7rem;
        border-bottom: 1px solid #d9d9d9;
        &.cur{
            color: @color;
            border-bottom: .05rem solid @color;
            box-sizing: border-box;
        }
    }
}

/*主体部分*/
main{
    overflow: auto;
    ul{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        
        li{
            width: 49%;
            border: 1px solid #e5e5e5;
            margin-top: .1rem;
            img{
                width: 100%;
            }
            figcaption{
                font-size: .24rem;
                color: #333333;
                height: .58rem;
                line-height: .58rem;
                text-align: center;
                border-top: 1px solid #e5e5e5;
            }
        }
    }
}

/*尾部部分*/
footer{
    height: 0.88rem;    
    div{
        display: flex;
        justify-content: space-between;
        padding: 0 .23rem 0 .31rem;
        
        & p:nth-child(3){
            width: 1.06rem;
            height: 0.88rem;
            position: relative;
            img{
                width: 100%;
                position: absolute;
                left: 0;
                bottom: 0;
            }
        }
        p{
            font-size: .24rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            span{
                margin-top: .05rem;
                color: #dddddd;
            }
            i{
                color: #d1d1d2;
            }
            &.cur{
                i{
                    color: @color;
                }
                span{
                    color: @color;
                }
            }
        }
    }
}

